WithCustomPerms
Paired with AdminAccess Applies custom permission restrictions to a config setting. Overridden by ClientModifiable
If this annotation is used in a Config, it should also have AdminAccess defined for the config class
Uses permissions from LuckPerms, or any permissions mod that integrates with fabric-permissions-api
.
Order of precedence:
EntryPermissible (hardcode bypass pf permission checks)
ClientModifiable (Annotating config class itself)
ClientModifiable (specific setting annotation)
WithCustomPerms (specific setting annotation)
WithPerms (specific setting annotation)
WithCustomPerms (Annotating config class itself)
WithPerms (Annotating config class itself)
Author
fzzyhmstrs
Since
0.3.8
Parameters
Array
Int - Default -1 = no custom fallback behavior; it will use the default permissions of the class. If provided, uses vanilla logic: 1 = moderator, 2 = game master, 3 = admin, 4 = owner